<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        "use strict";

        function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

        function _defineProperty(obj, key, value) { 
                if (key in obj) { 
                    Object.defineProperty(obj, key, 
                        { value: value, enumerable: true, configurable: true, writable: true }); 
                } else { 
                    obj[key] = value; 
                } 
            return obj; 
        }

        var Car = //属性设置
            //方法设置
            function Car() {// this.name = '汽车';

                _classCallCheck(this, Car);

                _defineProperty(this, "name", '汽车 xxx');
            };

        let c = new Car();
    </script>
</body>

</html>